using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace AliCMS
{
    public interface IDalBase
    {
        void BeginWork(int instanceID, string lang, bool checkRight, string database);
        void EndWork();

        int GetInnerIDFromGuid(Guid guid);
        Guid GetGuidFromInnerID(object id);
        Dictionary<string, object> Get(object id);
        void Add(Dictionary<string, object> item);
        void Modify(int id, Dictionary<string, object> changes);
        void Delete(int id);
        DataTable List(int page, int pageSize, string condition, string sort);
        int GetRecordCount(string condition);

        IManager Manager { get; set; }
        string Lang { get; set; }
        bool CheckRight { get; set; }
    }
}
